#ifndef DOCTOR_CLIENT_H
#define DOCTOR_CLIENT_H

#include <QWidget>
#include <QListWidget>
#include <QPushButton>

class DoctorClient : public QWidget
{
    Q_OBJECT
public:
    explicit DoctorClient(int doctorId, QWidget *parent = nullptr);
    int getCurrentDoctorId() const; // 获取当前医生ID

private slots:
    void onRefreshAppointments();    // 刷新预约列表
    void onConfirmAppointment();     // 确认预约
    void onRejectAppointment();      // 拒绝预约

private:
    int doctorId;                    // 当前医生的ID
    QListWidget *appointmentListWidget; // 用于显示预约列表的部件
    QPushButton *confirmButton;
    QPushButton *rejectButton;

    void setupUI();
    void loadAppointments();         // 从数据库加载预约请求
};

#endif // DOCTOR_CLIENT_H
